<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        {{'付款申请单列表'|translate}}
        <small></small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> {{'首页'|translate}} </a></li>
        <li><a href="#"><i class="fa fa-dashboard"></i> {{'财务'|translate}} </a></li>
        <li><a href="#"><i class="fa fa-dashboard"></i> {{'应付管理'|translate}} </a></li>
        <li class="active"> {{'付款申请单'|translate}}</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">
    <div class="box box-danger">
        <div class="box-header with-border">
            <form class="form-inline">
                <div class="row">
                    <div class="col-md-5  btn-mr-5">
                        <button type="button" btn-per="{id:15,name:'付款申请-新增'}" class="btn btn-success btn-xs" ng-click="add()"><i
                                class="iconfont icon-jia1"></i>{{'新增'|translate}}
                        </button>
                        <button type="button" btn-per="{id:15,name:'付款申请-审核'}" class="btn btn-danger btn-xs" one-click="batchAudit()"><i
                                class="iconfont icon-shen"></i>审核
                        </button>
                        <button type="button" btn-per="{id:15,name:'付款申请-反审核'}" class="btn  btn-xs" one-click="batchAntiAudit()"><i
                                class="iconfont icon-fanshen"></i>反审核
                        </button>
                        <button type="button" btn-per="{id:15,name:'付款申请-删除'}" class="btn btn-danger btn-xs" one-click="del()"><i
                                class="iconfont icon-iconfontshanchu"></i>{{'删除'|translate}}
                        </button>
                    </div>
                    <div class="col-md-7 text-right">
                        <div class="input-group   ">
                            <input type="text" class="form-control input-sm" input-clear style="width: 200px" placeholder="付款申请单号"
                                   ng-model="searchCondtion">
                              <span class="input-group-btn">
                                 <button style="height: 30px" type="button" class="btn btn-danger btn-xs"
                                         ng-click="search()"><i class="iconfont icon-sousuo_sousuo"></i>{{'搜索'|translate}}
                                 </button>
                              </span>
                        </div>
                        <!--<div class="btn btn-primary" style="padding: 3px 6px;" ng-click="showMore(true)">
                            {{'更多条件'|translate}}
                            <span class="carett"></span>
                        </div>-->
                        <div ng-click="showMore(true)" style="display: inline-block;">
                            <div class="btn btn-primary" style="padding: 3px 6px;" data-toggle="collapse"
                                 data-target="#moreDetail" aria-expanded="true" aria-controls="moreDetail">
                                {{'更多条件'|translate}}
                                <span class="carett"></span>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <div class="more-wrap collapse" id="moreDetail" style=" margin-top: 10px;">
                <div class="row clearfix" >
                    <div class="input-group col-lg-4 col-md-6 col-sm-12">
                        <lable class="">{{'组织' | translate}}</lable>
                        <select class="form-control input-sm" ng-model="PORGANISATION_ID" style="width:75%"
                                ng-options="value.ORGANISATION_CODE as value.ORGANISATION_NAME_CN for value in poOrgList"
                        ></select>
                    </div>
                    <div class="input-group col-lg-4 col-md-6 col-sm-12">
                        <lable>{{'供应商' | translate}}</lable>
                        <select class="form-control input-sm" ng-model="PARTNER_ID" style="width:75%"
                                ng-options="value.PARTNER_ID as value.PARTNER_NAME for value in partnerList"
                        ></select>
                    </div>
                    <div class="input-group col-lg-4 col-md-6 col-sm-12">
                        <lable>{{'审核状态' | translate}}</lable>
                        <select class="form-control input-sm" ng-model="AUDIT_STATE" style="width:75%"
                                ng-options="value.D_VALUE as value.D_NAME_CN for value in docStateList"
                        ></select>
                    </div>
                    <div class="input-group col-lg-4 col-md-6 col-sm-12">
                        <lable>{{'付款状态' | translate}}</lable>
                        <select class="form-control input-sm" ng-model="PAYMENT_STATE" style="width:75%"
                                ng-options="value.D_VALUE as value.D_NAME_CN for value in paymentStateList"
                                ng-change="stateSearch()"></select>
                    </div>
                    <div class="input-group col-lg-4 col-md-6 col-sm-12">
                        <label>{{'申请日期' | translate}}</label>
                        <input class="form-control input-sm" kendo-date-time-picker
                               k-format="'yyyy-MM-dd'" ng-model='ptimeTo' k-ng-model='ptimeTo'>
                        <span style="margin: 0 8px; display: inline-block; float: right;">~</span>
                        <input class="form-control input-sm"  kendo-date-time-picker
                               k-format="'yyyy-MM-dd'" ng-model='ptimeFrom' k-ng-model='ptimeFrom'>
                    </div>
                    <div class="input-group col-lg-4 col-md-6 col-sm-12">
                        <label>{{'实付日期' | translate}}</label>
                        <input class="form-control input-sm"  kendo-date-time-picker input-clear
                               k-format="'yyyy-MM-dd'" ng-model='paytimeTo' k-ng-model='paytimeTo'>
                        <span style="margin: 0 8px; display: inline-block; float: right;">~</span>
                        <input class="form-control input-sm"  kendo-date-time-picker input-clear
                               k-format="'yyyy-MM-dd'" ng-model='paytimeFrom' k-ng-model='paytimeFrom'>
                    </div>

                </div>
            </div>

            <!--<div id="more">
                <div class="more-wrap" style=" margin-top: 10px;">
                    <div style="overflow: hidden;">
                        <div class="input-group">
                            <label>{{'申请日期' | translate}}</label>
                            <input class="form-control input-sm" kendo-date-time-picker
                                   k-format="'yyyy-MM-dd'" ng-model='ptimeTo' onkeydown="return false">
                            <span style="margin: 0 8px; display: inline-block; float: right;">~</span>
                            <input class="form-control input-sm"  kendo-date-time-picker
                                   k-format="'yyyy-MM-dd'" ng-model='ptimeFrom' k-ng-model='ptimeFrom'>

                        </div>
                        <div class="input-group">
                            <label>{{'实付日期' | translate}}</label>
                            <input class="form-control input-sm"  kendo-date-time-picker
                                   k-format="'yyyy-MM-dd'" ng-model='paytimeTo' k-ng-model='paytimeTo'>
                            <span style="margin: 0 8px; display: inline-block; float: right;">~</span>
                            <input class="form-control input-sm"  kendo-date-time-picker
                                   k-format="'yyyy-MM-dd'" ng-model='paytimeFrom' k-ng-model='paytimeFrom'>
                        </div>
                        <div class="input-group-small">
                            <lable class="">{{'组织' | translate}}</lable>

                            <select class="form-control input-sm" ng-model="PORGANISATION_ID" style="width:60%"
                                    ng-options="value.ORGANISATION_CODE as value.ORGANISATION_NAME_CN for value in poOrgList"
                            ></select>

                        </div>
                        <div class="input-group-small">
                            <lable>{{'供应商' | translate}}</lable>
                            <select class="form-control input-sm" ng-model="PARTNER_ID" style="width:60%"
                                    ng-options="value.PARTNER_ID as value.PARTNER_NAME for value in partnerList"
                            ></select>
                        </div>
                        <div class="input-group-small">
                            <lable>{{'审核状态' | translate}}</lable>
                            <select class="form-control input-sm" ng-model="AUDIT_STATE" style="width:60%"
                                    ng-options="value.D_VALUE as value.D_NAME_CN for value in docStateList"
                            ></select>
                        </div>
                        <div class="input-group-small">
                            <lable>{{'付款状态' | translate}}</lable>
                            <select class="form-control input-sm" ng-model="PAYMENT_STATE" style="width:60%"
                                    ng-options="value.D_VALUE as value.D_NAME_CN for value in paymentStateList"
                                    ng-change="stateSearch()"></select>
                        </div>

                    </div>
                    <div class="center-block" style="width: 180px; overflow: hidden; margin-top: 26px;">
                        <div class="btn btn-success js-search" style="float: left;" ng-click="showMore(false)">
                            {{'确认'|translate}}
                        </div>
                        <div class="btn btn-danger" style="float: right;" ng-click="clearSearch()">{{'清除'|translate}}
                        </div>
                    </div>


                </div>

            </div>-->
        </div>

        <div class="box-body" auto-height="gridOptions">
            <!--<div grid-table grid-options="gridOptions"></div>-->
            <div ui-grid="gridOptions" ui-grid-pagination ui-grid-cellNav ui-grid-selection
                 ui-grid-resize-columns ui-grid-auto-resize></div>

        </div>
        <!-- /.box-body -->
    </div>


</section>
<!-- /.content -->

